@using BlazorApp4.Data
<tbody>
    <tr>
      <td>
          <span class="btn btn-link" @onclick="DownloadFileFromURLAsync">
            @FileInfoAttr.Name
            </span>
      </td>
      <td>@FileInfoAttr.Ip</td>
      <td>@FileInfoAttr.Length</td>
      <td>@FileInfoAttr.UploadTime</td>
    </tr>
</tbody>

@code {
    [Parameter]
    public FileDetail FileInfoAttr { get; set; }

    public string ip;

    /// <summary>
    /// Event to raise when a contact delete is requested.
    /// </summary>
    [Parameter]
    public EventCallback DownLoadFile { get; set; }

    /// <summary>
    /// Deletes the <see cref="Contact"/>.
    /// </summary>
    /// <returns>A <see cref="Task"/>.</returns>
    private Task DownloadFileFromURLAsync()
    {
        return DownLoadFile.InvokeAsync();
    }
}